<p id="notice">
	<%= notice %>
</p>

<p>
	<b>Customer:</b>
	<%= @invoice.customer_id %>
</p>

<p>
	<b>User:</b>
	<%= @invoice.user_id %>
</p>

<table class="table table-striped">
	<thead>
		<tr>
			<th> Item</th>
			<th> Size </th>
			<th> Qty </th>
		</tr>
	</thead>
	<tbody>

		<% @invoice.invoice_items.each do  |item| %>
		<tr>
			<td><%= item.product.item_number %> </td>
			<td><%= item.size.name %></td>
			<td><%= item.quantity %></td>
		</tr>
		<% end %>

	</tbody>

</table>

<%= link_to 'Edit', edit_invoice_path(@invoice) %> |
<%= link_to 'Back', invoices_path %>
